package com.hyg.module_testing.ui.activity;

import android.Manifest;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.hyg.lib_base.lisener.PermissionListener;
import com.hyg.lib_common.Base.BaseActivity;
import com.hyg.lib_common.ui.activity.TestSelfTizhiActivity;
import com.hyg.module_testing.R;


public class TesttingMainActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_testting);
    }

    public void onTizhiClicked(View view) {
        getPermissions(new String[]{ Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION}, new PermissionListener() {
            @Override
            public void onResult(int[] results) {
                Log.i("lgb", "onResult: "+results[0]);
            }
        });
    }

    public void onJingshenClicked(View view) {
        Intent intent = new Intent(this, TestSelfTizhiActivity.class);
        startActivity(intent);
    }

}